<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB; 
use App\Realname;
use App\AccountFanxianLog;
use App\Shop;

Class FanxianController extends AdminController{ 
    
    public function fainxianlist(Request $request){
        $fliter = AccountFanxianLog::where('id','>', 0);
        $orderid = trim($request->input('orderid', ''));
        $shop_id = trim($request->input('shop_id', '')); 
        if($shop_id){
            $fliter = $fliter->where('shop_id', $shop_id);
        }
        if($orderid){
            $fliter = $fliter->where('order_id', $orderid);
        }
        $this->itemsWithPage($request, $fliter);
    }
}